<form action="index.php" method="post" name="_form">
<input type="hidden" name="function" value="{function}" />
<input type="hidden" name="id" value="{id}" />
<input type="hidden" name="module" value="comments" />
<input type="hidden" name="redirect" value="<?echo($_SERVER['HTTP_REFERER']);?>" />


<table align="center" width="100%" class="tabelka2">
<?php if(!$GLOBALS['registered']){?>
<tr>
   <td class="row_2" align="center"><?echo($GLOBALS['lang']['users']['login']);?></td>
	 <td class="row_2" align="left">{who}</td>
</tr>
<tr>
   <td class="row_2" align="center"><?echo($lang['mail']);?></td>
	 <td class="row_2" align="left"><input type="text" maxlength="150" name="mail" value="{mail}" class="button" size="30" {readonly} /></td>
</tr>
<?}?>
<tr>
   <td class="row_2" align="center"><?echo($lang['admin_title']);?></td>
	 <td class="row_2" align="left"><input type="text" maxlength="150" name="title" value="{title_content}" class="button" size="30" /></td>
</tr>
<tr valign="top">
     <td class="row_1" align="center"><?echo($lang['admin_content_pl']);?> <a href="javascript:void();" onclick="javascript:open_popup('help.php?dom_id=text', screenWH('W'), screenWH('H'));"><img src="admin/gfx/help.png" alt="" /></a></td>
	 <td class="row_1" align="left"><textarea name="text" cols="40" rows="8" class="button" id="text">{text_content}</textarea></td>
</tr>
<?php if(perms_check('comments', 'edit')){?>
<tr>
   <td class="row_2" align="center">IP:</td>
	 <td class="row_2" align="left"><input type="text" maxlength="150" name="ip" value="{ip}" class="button" size="30" readonly /></td>
</tr>
<tr>
   <td class="row_1" align="center"><?echo($lang['admin_date']);?></td>
	 <td class="row_1" align="left"><input type="text" maxlength="30" name="date" value="{date}" class="button" size="20" />&nbsp;-&nbsp;<?echo(date($conf['date_format'], strtotime('{date}')));?></td>
</tr>
<?php if($_GET['url']) {?>
<input type="hidden" value="<?echo(urldecode($_GET['url']));?>" name="url" />
<?}?>

<?}?>
<tr>
     <td></td>
     <td><input type="submit" value="<?echo($lang['admin_edit']);?>" class="button" /></td>
</tr>
</table>
</form>
